<template>
  <section>
    <div class="recommend" v-for="(item, index) in recommends" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="" />
      </a>
      <div class="title">{{ item.title }}</div>
    </div>
  </section>
</template>
<script>
export default {
  name: "",
  props: {
    recommends: {
      type: Array,
      default() {
        return [];
      }
    }
  },
  data() {
    return {};
  },
  methods: {}
};
</script>
<style scoped>
section {
  display: flex;
  text-align: center;
  border-bottom: 8px solid rgb(238, 236, 236);
}
.recommend {
  padding: 10px;
}
.title {
  margin-top: 5px;
  font-size: 0.9rem;
}
img {
  width: 100%;
}
</style>
